package com.hoshiicloud.common.constant;

public enum UserTypeEnum {

    SAAS("SAAS"),
    COMPANY("COMPANY"),
    MEMBER("MEMBER"),
    PLATFORM("PLATFORM"),
    STORE("STORE"),
    LESSEE_VENDOR("LESSEE_VENDOR"),
    PLATFORM_VENDOR("PLATFORM_VENDOR"),
    STORE_VENDOR("STORE_VENDOR"),
    PLAT_CONSUMERS("PLAT_CONSUMERS");

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    private String userType;

    private UserTypeEnum(String userType) {
        this.userType = userType;
    }
    public static UserTypeEnum get(String userType) {
        for (UserTypeEnum userTypeEnum : values()) {
            if (userTypeEnum.getUserType().equals(userType) ) {
                return userTypeEnum;
            }
        }
        return null;
    }
}